package ar.edu.itba.it.paw.web.model;

import org.apache.wicket.model.AbstractReadOnlyModel;
import org.apache.wicket.model.IModel;

import ar.edu.itba.it.paw.domain.Transaction;

public class TransactionPriceModel extends AbstractReadOnlyModel<Double>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	IModel<Transaction> transaction;

	public TransactionPriceModel(IModel<Transaction> transaction){
		this.transaction = transaction;
	}

	@Override
	public Double getObject() {
		return transaction.getObject().getSellingPrice();
	}

}
